package com.wali.common.ccp.page;

import java.util.List;

/**
 * @ClassName: CcpPagination
 * @Description: 分页返回数据封装类
 * @author: wali
 * @email wali.xu@kpmg.com
 * @date: 19/07/2018 11:37 上午
 */
public class CcpPagination<T> {
    // 总记录数
    private int count = 0;

    // 状态信息
    private String msg = "";

    // 返回码
    private int code = 0;

    // 分页数据
    private List<T> data;

    public CcpPagination() {
    }

    public CcpPagination(int count) {
        this.count = count;
    }


    public int getCount() {
        return count;
    }


    public void setCount(int count) {
        this.count = count;
    }


    public String getMessage() {
        return msg;
    }


    public void setMsg(String msg) {
        this.msg = msg;
    }


    public int getCode() {
        return code;
    }


    public void setCode(int code) {
        this.code = code;
    }


    public List<T> getData() {
        return data;
    }


    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "CcpPagination [count=" + count + ", msg=" + msg + ", code=" + code + ", data=" + data + "]";
    }

}